function jsf_onload(ps_title,ps_msg)
{
  setInterval("jsf_change_text_color('" + ps_msg + "')",li_speed);
}


function jsf_change_text_color(ps_msg)
{
  var ls_color1   = "DarkBlue";	//&#65533;&#65533;r&#65533;&#65533;&#65533;C&#65533;&#65533;
  var ls_color2   = "Red";	//&#65533;&#3371;&#65533;&#65533;&#65533;C&#65533;&#65533;
  var ls_fontsize = "2";	//&#65533;r&#65533;&#65533;j&#65533;p
  var li_cnt      = 00;
  var ls_str      = "";
  var ls_set      = "<CENTER><FONT FACE=arial SIZE=" + ls_fontsize + "><FONT COLOR=" + ls_color1 + ">";

  var ls_msg      = window.wait_msg.innerText;

  if(ls_msg==null || ls_msg.length<=00 || ls_msg==''){ return; }

  //if(navigator.appName=="Netscape")
  //{ document.write("<layer id=a visibility=show></layer><br><br><br>"); }
  //else
  //{ document.write("<div id=a></div>");}

  if(navigator.appName=="Netscape")
  {
    document.wait_msg.document.write(ls_set);
    for(li_cnt=00;li_cnt<ls_msg.length;li_cnt++)
    {
      if(li_cnt==li_i)
      { document.wait_msg.document.write("<FONT FACE=arial COLOR=" + ls_color2 + ">" + ls_msg.charAt(li_cnt) + "</FONT>"); }
      else
      {	document.wait_msg.document.write(ls_msg.charAt(j)); }
    }
    document.wait_msg.document.write('</FONT></FONT></CENTER>');
    document.wait_msg.document.close();
  }

  if(navigator.appName=="Microsoft Internet Explorer")
  {
    ls_str = ls_set;
    for(li_cnt=00;li_cnt<ls_msg.length;li_cnt++)
    {
      if(li_cnt==li_i)
      { ls_str += "<FONT FACE=arial COLOR=" + ls_color2 + ">" + ls_msg.charAt(li_cnt) + "</FONT>"; }
      else
      { ls_str += ls_msg.charAt(li_cnt); }
    }
    ls_str += "</FONT></FONT></CENTER>";
    document.all.item("wait_msg").innerHTML = ls_str;
  }

  if(li_i==ls_msg.length)
  { li_i = 00; }
  else
  { li_i++; }

}
